﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Studio.Foundation.Text
{
    public class StringUtilities
    {

        public static string Cut(string source, string prefix, string ending)
        {
            int index = source.IndexOf(prefix);
            if (index > 0)
            {
                source = source.Substring(index + prefix.Length);
                index = source.IndexOf(ending);
                if (index > 0) source = source.Substring(0, index);
            }
            return source;
        }

    }
}
